<?php 


/** 
***************************************************
*欢迎使用免费版xSite企业自助建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.php.net.cn/xsite/ 
***************************************************
**/




 chdir(dirname(getcwd())); header("Content-type: text/html;charset=utf-8"); require_once "php.net.cn/xsite/include/common.inc.php"; $setting = cache_read("setting"); extract($setting); unset($password, $domain[$site_url]['password']); if (defined('XSITE_MU') && DOMAIN != 'DOMAIN') { exit_msg("该网站地图功能在多站情况下仅运行于二级域名模式！"); } ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?=$seo_title?></title>
<?php if(!empty($seo_keywords)){ ?><meta name="keywords" content="<?=$seo_keywords?>" /><?php }?>

<?php if(!empty($seo_description)){ ?><meta name="description" content="<?=$seo_description?>" /><?php }?>

<?php if(!empty($seo_author)){ ?><meta content="<?=$seo_author?>" name="author"><?php }?>

<?php if(!empty($seo_copyright)){ ?><meta content="<?=$seo_copyright?>" name="copyright"><?php }?>
<style type="text/css">
<!--
div{margin:0px;padding:0px;}body{font-size:12px;color:#333333;background-color:#FFFFFF;margin-left:20px;margin-top:20px;margin-right:20px;margin-bottom:20px;}a:link{color:#333333;}a:visited{color:#FF0000;}a:hover{color:#333333;}a:active{color:#FF0000;}h1{font-size:16px;}h2{font-size:15px;}h3{font-size:13px;}h4{font-size:12px;}.mainbox{padding:10px;margin-top:8px;margin-right:0px;margin-bottom:8px;margin-left:0px;border:1px solid #EEEEEE;}.footer{margin:0px;padding:0px;}.footer li{margin:0px;padding:0px;float:left;list-style-type:none;}img{margin:3px;padding:0px;border:0px solid #666666;}
-->
</style>
</head>
<body>
<div class="mainbox">
	<h1><a href="<?php echo "http://{$site_url}{$site_path}"; ?>"><?=$site_title?></a></h1>
	<h2><?=$site_keywords?></h2>
	<h4><?=$site_description?></h4>
</div>

<div class="mainbox">
<?php  echo '<ul>'; foreach ($system_tree_category as $k => $v) { echo '<li><h3><a href="' . $v['category_link'] . '" target="_blank">' . $v['name'] .' </a></h3>'; if ($v['module'] == 'product') { $data = tpl_product_list("category={$k}&limit=150"); echo '<ul>'; if (is_array($data) && count($data)) { $list = $data['list']; foreach ($list as $key => $info ) { echo '<li><a href="' . $info['html_link'] . '" target="_blank">' . $info['name'] .' </a></li>'; } } echo '</ul>'; } if ($v['module'] == 'article') { $data = tpl_article_list("category={$k}&limit=150"); if (is_array($data) && count($data)) { $list = $data['list']; echo '<ul>'; foreach ($list as $key => $info ) { echo '<li><a href="' . $info['html_link'] . '" target="_blank">' . $info['body_name'] .' </a></li>'; } echo '</ul>'; } } if (array_key_exists('subcategory', $v) && is_array($v['subcategory']) && count($v['subcategory'])) { echo '<ul>'; foreach ($v['subcategory'] as $kk => $vv) { echo '<li><a href="' . $vv['category_link'] . '" target="_blank">' . $vv['name'] .' </a>'; if ($vv['module'] == 'product') { $data = tpl_product_list("category={$kk}&limit=150"); echo '<ul>'; if (is_array($data) && count($data)) { $list = $data['list']; foreach ($list as $key => $info ) { echo '<li><a href="' . $info['html_link'] . '" target="_blank">' . $info['name'] .' </a></li>'; } } echo '</ul>'; } if ($vv['module'] == 'article') { $data = tpl_article_list("category={$kk}&limit=150"); if (is_array($data) && count($data)) { $list = $data['list']; echo '<ul>'; foreach ($list as $key => $info ) { echo '<li><a href="' . $info['html_link'] . '" target="_blank">' . $info['body_name'] .' </a></li>'; } echo '</ul>'; } } if (array_key_exists('subcategory', $vv) && is_array($vv['subcategory']) && count($vv['subcategory'])) { echo '<ul>'; foreach ($vv['subcategory'] as $kkk => $vvv) { echo '<li><a href="' . $vvv['category_link'] . '" target="_blank">' . $vvv['name'] .' </a>'; if ($vvv['module'] == 'product') { $data = tpl_product_list("category={$kkk}&limit=150"); echo '<ul>'; if (is_array($data) && count($data)) { $list = $data['list']; foreach ($list as $key => $info ) { echo '<li><a href="' . $info['html_link'] . '" target="_blank">' . $info['name'] .' </a></li>'; } } echo '</ul>'; } if ($vvv['module'] == 'article') { $data = tpl_article_list("category={$kkk}&limit=150"); if (is_array($data) && count($data)) { $list = $data['list']; echo '<ul>'; foreach ($list as $key => $info ) { echo '<li><a href="' . $info['html_link'] . '" target="_blank">' . $info['body_name'] .' </a></li>'; } echo '</ul>'; } } echo '</li>'; } echo '</ul>'; } echo '</li>'; } echo '</ul>'; } echo '</li>'; } echo '<li><h3><a href="http://www.php.net.cn" target="_blank">PHP</a></h3></li>'; echo '<li><h3><a href="http://www.ps.net.cn" target="_blank">PS</a></h3></li>'; echo '<li><h3><a href="http://www.xsite.cn" target="_blank">建站</a></h3></li>'; echo '</ul>'; ?>

</div>

</body>
</html>